﻿/*=============================================================
	TASK 1:                                            {Arrays}
	Write a program that allocates array of 20 integers 
    and initializes each element by its index multiplied by 5.
    Print the obtained array on the console.   
==============================================================*/

using System;

class MultipliedBy5
{
    static void Main()
    {
        int[] array = new int[20];

        for (int i = 0; i < array.Length; i++)
        {
            array[i] = i ;
            Console.WriteLine("array[{0}]={1}",i,array[i]);
        }

        for (int i = 0; i < array.Length; i++)
        {
            array[i] = i*5;
            Console.WriteLine("array[{0}] * 5= {1} * 5 = {2}", i, array[i]/5,array[i]);
        }
        Console.WriteLine();
    }
}

